import styled from 'styled-components';
import { TitleColor } from '../../style/color'

export const TopBox = styled.div`
  .top_box {
    display: flex;
    justify-content: center;

    .top_decoration10 {
      position: relative;
      width: 33.3%;
      height: 0.0625rem;
    }

    .top_decoration10_reverse {
      transform: rotateY(180deg);
    }

    .title-box {
      display: flex;
      justify-content: center;

      .top_decoration8 {
        width: 2.5rem;
        height: 0.625rem;
      }

      .title {
        position: relative;
        width: 6.25rem;
        text-align: center;
        background-size: cover;
        background-repeat: no-repeat;

        .title-text {
          font-size: 0.3rem;
          position: absolute;
          bottom: 0;
          left: 50%;
          color: #fff;
          transform: translate(-50%);
        }

        .top_decoration6 {
          width: 3.125rem;
          height: 0.1rem;
        }

        .title-bototm {
          position: absolute;
          bottom: -0.375rem;
          left: 50%;
          transform: translate(-50%);
        }
      } // end title
    } // end title-box
  } // end top_box
`;

export const TimeBox = styled.div`
  position: absolute;
  right: 0.375rem;
  top: 0.5rem;
  text-align: right;
  color: #fff;
  h3{
    font-size: 0.225rem;
    color: ${TitleColor};
  }
`;

export const TopPage = styled.div`
  width: 100%;
  height: 0.9rem;
  margin-bottom: 0.1rem;
`;

export const TopHeader = styled.div`
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
  
  .top-header-left {
    flex: 1;
    color: #fff;
    display: flex;
    align-items: center;
    
    .top-header-item {
      display: flex;
      align-items: center;
      margin-right: 0.3rem;
      
      .header-text {
        font-size: 0.4rem;
        font-weight: bold;
        color: #00d4ff;
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
        margin: 0;
        
        .title-decoration {
          color: #89e5ff;
          margin-left: 0.2rem;
        }
      }
    }
  }
  
  .top-header-right {
    color: #89e5ff;
    font-size: 0.16rem;
    letter-spacing: 0.02rem;
    text-shadow: 0 0 8px rgba(137, 229, 255, 0.6);
  }
`;

export const KpiContainer = styled.div`
  display: flex;
  gap: 0.12rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
`;

export const KpiCard = styled.div`
  width: 2.8rem;
  height: 1.4rem;
  position: relative;
  
  .kpi-border {
    width: 100%;
    height: 100%;
    padding: 0.15rem;
  }
  
  .kpi-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    
    .kpi-value {
      font-size: 0.5rem; /* 大幅增加KPI数值字体 */
      font-weight: bold;
      color: #00ffff;
      text-shadow: 0 0 22px rgba(0, 255, 255, 0.8);
      line-height: 1;
      margin-bottom: 0.08rem;
    }
    
    .kpi-label {
      font-size: 0.2rem; /* 大幅增加KPI标签字体 */
      color: rgba(255, 255, 255, 0.9);
      font-weight: 500;
      letter-spacing: 0.01rem;
    }
  }
  
  /* 悬停效果 */
  &:hover {
    .kpi-border {
      box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    }
    
    .kpi-value {
      color: #ffffff;
      text-shadow: 0 0 30px rgba(0, 255, 255, 1);
      transform: scale(1.05);
    }
  }
`;
